﻿<script>
    $(document).ready(function () {
        $('#dataTable').dataTable({
            "bProcessing": true,
            "sAjaxSource": '/Content/json/ship.txt',
            "bSort": false,
            "bFilter": false,
            "bLengthChange": false,
            "aoColumns": [
                 { "mDataProp": "OrderNo", "sTitle": "Order No." },
                 { "mDataProp": "Weight", "sTitle": "Weight" },
                 { "mDataProp": "DateShipped", "sTitle": "Date Shipped" },
                 { "mDataProp": "DateDelivered", "sTitle": "Date Delivered" },
                 { "mDataProp": "TrackingNo", "sTitle": "Tracking No" },
                 { "mDataProp": "ShippingBy", "sTitle": "Shipping By " },
                 { "mDataProp": "Country", "sTitle": "Country" },
                 { "mDataProp": "State", "sTitle": "State" },
                 { "mDataProp": null, "sTitle": "Action", "sWidth": "100px",
                     "fnRender": function (o, val) {
                         return "<a href='#'>View</a>";
                     }
                 }
            ]
        });
    });
</script>
<div class="grid_14">
    <a href="/">Home</a> &gt; <a href="#">Sales</a> &gt; Shipments
    <hr />
</div>
<div class="grid_14">
    <div class="box">
        <h2>Shipments</h2>
        <fieldset id="orderFilter">
            <legend>Filter</legend>
            <p><label>From Date:</label><select><option>Select date...</option></select></p>
            <p><label>To Date:</label><select><option>Select date...</option></select></p>
            <p><label>Shipping By:</label><select><option>Select shipping...</option></select></p>
            <p><label>Order No.:</label><input value="12345678"/></p>
        </fieldset>
        <table id="dataTable"></table>
        <div class="clear"></div>
    </div>
</div>